package com.egg.mall.entity.notice;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.egg.common.core.model.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;


/**
 * @author east
 * @since 2023-05-10
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName(value = "mall_notice")
@ApiModel(value = "Notice对象", description = "公告表")
public class Notice extends BaseEntity {


    @ApiModelProperty(value = "是否启用")
    @TableField(value = "enabled")
    private Integer enabled;

    @ApiModelProperty(value = "公告标题")
    @TableField(value = "title")
    private String title;

    @ApiModelProperty(value = "公告内容")
    @TableField(value = "content")
    private String content;

    @ApiModelProperty(value = "是否置顶")
    @TableField(value = "top")
    private Boolean top;


}
